package concept.misc;

import java.util.Collections;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Random;

public class QueueEntry
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		Queue<String> pq = new PriorityQueue<String>();
		Queue<String> pq2 = new PriorityQueue<String>();
		
		for(char c=97;c <= 117; c++)
		{
			String s = new String(new char[]{c});
			pq.add(s);
		}

		for(char c=97;c <= 117; c++)
		{
			String s = new String(new char[]{c});
			pq2.offer(s);
		}

		pq.add("X");
		System.out.println("Added queue: ");
		for(String e:pq)
			System.out.print(e);

		pq2.offer("X");
		System.out.println("\nOffered queue: ");
		for(String e:pq2)
			System.out.print(e);
	}

}
